package vn.conghuy.talkwithme.responsor.action;

import android.content.Context;
import android.content.Intent;

public class EmailAction extends Action {
	
	public EmailAction(Context context) {
		super(context);
	}
	
	public void send(String email, String title, String content){
		Intent emailIntent = new Intent(Intent.ACTION_SEND);
		emailIntent.setType("text/html");
		String[] emailArray = null;
		if(email != null){
			emailArray = new String[1];
			emailArray[0] = email;
		}
		emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, emailArray );

		emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, title );
		emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, content );
		context.startActivity(emailIntent);
	}
}
